﻿(function () {
    "use strict";

    WinJS.UI.Pages.define("/pages/home/home.html", {
        // This function is called whenever a user navigates to this page. It
        // populates the page elements with the app's data.
        ready: function (element, options) {
        WinJS.Utilities.query("a").listen("click", linkClickEventHandler, false);
            WinJS.Utilities.query("a").listen("click", linkClickEventHandler, false);
        }
    });
})();

function linkClickEventHandler(eventInfo) {
    eventInfo.preventDefault();
    var link = eventInfo.target;
    WinJS.Navigation.navigate(link.href);
}

function on24Over() {
    var box = document.getElementById('bus24');
    box.style.transition = "all 0.5s ease";
    box.style.boxShadow = "0 0 30px rgba(255,255,255, 0.9)";
}

function on24Out() {
    var box = document.getElementById('bus24');
    box.style.transition = "all 0.5s ease";
    box.style.boxShadow = "0 0 10px rgba(255,255,255, 0.9)";
}

function on105Over() {
    var box = document.getElementById('bus105');
    box.style.transition = "all 0.5s ease";
    box.style.boxShadow = "0 0 30px rgba(255,255,255, 0.9)";
}

function on105Out() {
    var box = document.getElementById('bus105');
    box.style.transition = "all 0.5s ease";
    box.style.boxShadow = "0 0 10px rgba(255,255,255, 0.9)";
}

function onShuttleOver() {
    var box = document.getElementById('shuttle');
    box.style.transition = "all 0.5s ease";
    box.style.boxShadow = "0 0 30px rgba(255,255,255, 0.9)";
}

function onShuttleOut() {
    var box = document.getElementById('shuttle');
    box.style.transition = "all 0.5s ease";
    box.style.boxShadow = "0 0 10px rgba(255,255,255, 0.9)";
}



